import { demoApi } from "../demo/data";
import { http } from "./http";

const isDemo = true

export function sensitive(params) {
    return http.post("/tarot/text-sensitive", params);
}
export function sensitiveWechat(params) {
    return http.post("/sea/wechat/text-sensitive", params);
}
export function getNotice(params) {
    if (isDemo) return demoApi.getNotice
    return http.get("/app/sea/notice.json", params);
}
export function indexData(params) {
    if (isDemo) return demoApi.indexData
    return http.get("/sea/page/index", params);
}
export function indexAuthData(params) {
    return http.get("/sea/page/index-auth", params);
}
export function myAuthData(params) {
    if (isDemo) return demoApi.myAuthData
    return http.get("/sea/page/my-auth", params);
}
export function publishPageData(params) {
    if (isDemo) return demoApi.publishPageData
    return http.get("/sea/page/publish", params);
}
export function detailPageData(params) {
    if (isDemo) return demoApi.detailPageData
    return http.get("/sea/page/detail", params);
}
export function signInAuthPageData(params) {
    if (isDemo) return demoApi.signInAuthPageData
    return http.get("/sea/page/sign-in-auth", params);
}
export function inboxPageData(params) {
    if (isDemo) return demoApi.inboxPageData
    return http.get("/sea/page/inbox", params);
}
export function getMsgNotice(params) {
    if (isDemo) return demoApi.getMsgNotice
    return http.get("/sea/page/notice", params);
}
export function tagList(params) {
    if (isDemo) return demoApi.tagList
    return http.get("/sea/tag/index", params);
}
export function storeTag(params) {
    return http.post("/sea/tag/store", params);
}
export function setNickname(params) {
    return http.post("/sea/avatar/set-nickname", params);
}
export function setSex(params) {
    return http.post("/sea/avatar/set-sex", params);
}
export function avatarList(params) {
    if (isDemo) return demoApi.avatarList
    return http.get("/sea/avatar/index", params);
}
export function avatarPost(params) {
    if (isDemo) return demoApi.avatarPost
    return http.get("/sea/avatar/post", params);
}
export function storePost(params) {
    return http.post("/sea/post/store", params);
}
export function postLike(params) {
    return http.post("/sea/post/like", params);
}
export function postDetail(params) {
    if (isDemo) return demoApi.postDetail
    return http.get("/sea/post/detail", params);
}
export function postComment(params) {
    return http.post("/sea/comment/store", params);
}
export function commentList(params) {
    if (isDemo) return demoApi.commentList
    return http.get("/sea/comment/index", params);
}
export function commentInbox(params) {
    if (isDemo) return demoApi.commentInbox
    return http.get("/sea/comment/inbox", params);
}
export function inboxList(params) {
    if (isDemo) return demoApi.inboxList
    return http.get("/sea/inbox/index", params);
}
export function inboxTodayList(params) {
    return http.get("/sea/inbox/today-list", params);
}
export function inboxGet(params) {
    if (isDemo) return demoApi.inboxGet
    return http.get("/sea/inbox/get", params);
}
export function setPostAvatar(params) {
    return http.post("/sea/avatar/set-post-avatar", params);
}
export function wechat(params) {
    return http.get("/sea/wechat/auth", params);
}
export function userUpdate(params) {
    return http.post("/sea/user/update", params);
}
export function signIn(params) {
    return http.get("/sea/sign-in/store", params);
}
export function doShare(params) {
    return http.get("/sea/user/share", params);
}
export function uploadSign(params) {
    return http.get("/sea/upload/cossign", params);
}
export function uploadSave(params) {
    return http.get("/sea/upload/cossave", params);
}
export function postRequestUnlock(params) {
    return http.get("/sea/post/request-unlock", params);
}
export function postApproveUnlock(params) {
    return http.get("/sea/post/approve-unlock", params);
}